package per.ethan.cloud.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import per.ethan.cloud.common.domain.ResultBean;
import per.ethan.cloud.consumer.entity.Balance;
import per.ethan.cloud.consumer.service.impl.ProviderBalanceServiceFallbackImpl;

/**
 * @author Ethan
 * @date 2020/04/13 13:52
 */
@FeignClient(value = "cloud-alibaba-provider", path = "/balance", fallback = ProviderBalanceServiceFallbackImpl.class)
public interface ProviderBalanceService {

    @PutMapping
    ResultBean<Boolean> modify(@RequestBody Balance balance);

}
